#include "CLabel.h"

CLabel::CLabel(QWidget *parent): QLabel(parent)
{
    //设置对象初始化文本居中
    this->setAlignment(Qt::AlignCenter);
    //设置背景颜色为白色
    this->setStyleSheet("background-color:white");

}
void CLabel::mouseReleaseEvent(QMouseEvent* event){
    Q_UNUSED(event);
    emit click();
}


